package test1230am;

public class Test21 {
    public static void main(String[] args) {

        // (22)打印两个数组的交集
        int[] arr = {1,2,3,4,5};
        int[] brr = {3,4,5,6,7};
        m(arr,brr);

    }
    public static  void m(int[] a,int[] b){
        for(int i=0;i<a.length;i++){
            for(int j=0;j<b.length;j++){
                if(a[i]==b[j]){
                    System.out.println(a[i]);
                }
            }
        }
    }
}